<template>
  <div id="app"><router-view></router-view></div>
</template>

<script>
  import Vue from 'vue';

  import VueRouter from 'vue-router';
  import list from './components/list.vue';
  import flow from './components/flow.vue';
  import flowg from './components/flow-g.vue';

  const router = new VueRouter({
    routes: [
      { path: '/list', component: list },
      { path: '/', component: list },
      { path: '/flow/:id', name: 'flow', component: flowg, props: true }
    ]
  });

  Vue.prototype.$r_to = function(option) {
    router.push(option);
  };

  export default {
    name: 'app',
    router: router
  };
</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }
</style>
